StyleContext: Add CSS snippet language comments
authorDaniel Boles <dboles.src@gmail.com>
Thu, 12 Oct 2017 18:40:45 +0000 (19:40 +0100)
committerDaniel Boles <dboles.src@gmail.com>
Thu, 12 Oct 2017 18:40:45 +0000 (19:40 +0100)
The language is useful for parsing tools, such as that of gtkmm, which
otherwise assumes these are C snippets and elides them from its
generated documentation.

gtk/gtkstylecontext.c

index 12148cf1699b1abd3ad6c31cb547e1b48baf6a63..5f5637d8f408f172b004c4c22dddb291fe2f0301 100644 (file)
@@ -1202,13 +1202,13 @@ gtk_style_context_restore (GtkStyleContext *context)
  * In the CSS file format, a #GtkEntry defining a “search”
  * class, would be matched by:
  *
- * |[
+ * |[ <!-- language="CSS" -->
  * entry.search { ... }
  * ]|
  *
  * While any widget defining a “search” class would be
  * matched by:
- * |[
+ * |[ <!-- language="CSS" -->
  * .search { ... }
  * ]|
  *